﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QiAdmin.Core.Services.Quartz;

namespace QiAdmin.Tasks
{
    public class ConsoleTask : IBaseTask
    {
        public bool Execute(JobDataMap args)
        {
            if (args != null && args.Count > 0)
            {
                foreach (var item in args)
                {
                    Console.WriteLine(item.Key+":"+item.Value);
                }
            }
            else
            {
                Console.WriteLine("Test");
            }
            return true;
        }
    }
}
